Use PELogOnSQLServerWithPrivateInfo to enable the Crystal Report Engine to "piggyback" your application's existing connection to a Server. If you are already logged on, this function lowers the number of connections established by a workstation, thus reducing application time and network traffic. It also prevents a Crystal Reports Log Off call from disconnecting an application's existing connection to the Server.
BOOL CRPE_API PELogOnSQLServerWithPrivateInfo (
const char FAR *dllName,
void FAR *privateInfo );
If the application uses ODBC to connect, get the ODBC HDBC by using the following function calls. Also, see the ODBC documentation for more information.
SQLAllocEnv
«Initializes the ODBC call level interface and allocates memory for an environment handle.»
SQLAllocConnect
«Returns an ODBC HDBC.»
Declare Function PELogOnSQLServerWithPrivateInfo Lib "crpe32.dll" ( ByVal DLLName As String, ByVal PrivateInfo As Long ) As Integer
function PELogOnSQLServerWithPrivateInfo (
dllName: PChar;
privateInfo: Pointer
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |